package ui;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class FlowerTable extends JFrame implements ActionListener {
    public static void main(String[] args) {
        FlowerTable frame = new FlowerTable();
        frame.setVisible(true);
        Dimension d = new Dimension() ;
        d.setSize(600,300) ;
        frame.setSize(d) ;                  // 设置窗口的大小
        frame.setBackground(Color.RED) ;    // 将背景设置成白色
        Point p = new Point(500,200) ;  // 指定窗口打开位置
        JLabel panel = new JLabel();
        frame.add(panel);
        frame.setLocation(p);
    }


    @Override
    public void actionPerformed(ActionEvent e) {

    }
}
